@extends('admin.layout')
@section('title',$title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                商品属性详情管理
                <small>商品属性详情列表</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i>后台首页</a></li>
                <li><a href="#">商品属性详情管理</a></li>
                <li class="active">商品属性详情列表</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">商品属性详情列表</h3>
                        </div><!-- /.box-header -->
                        <div class="box-body">
                            @if(session('success'))
                                <div class="alert alert-danger">
                                    {{session('success')}}
                                </div>
                            @endif
                            <table id="example2" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>商品属性值ID</th>
                                    <th>商品属性值</th>
                                    <th>商品属性名称</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($data as $k=>$v)
                                <tr>
                                    <td>{{$v-> id}}</td>
                                    <td>{{$v -> name}}</td>
                                    <td>{{$v -> goodsattrname}}</td>
                                    <td><a href="/admin/goodsattrdetails/edit/{{$v->id}}">编辑</a>  <a href="/admin/goodsattrdetails/delete/{{$v->id}}">删除</a></td>
                                </tr>
                                @endforeach
                                </tbody>
                            </table>
                            
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection